package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户余额变动对象 hh_user_account
 * 
 * @author ruoyi
 * @date 2021-06-16
 */
public class HhUserAccount extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long uaId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 之前余额 */
    @Excel(name = "之前余额")
    private String beforeBalance;

    /** 金额 */
    @Excel(name = "金额")
    private String thisAmount;

    /** 之后余额 */
    @Excel(name = "之后余额")
    private String afterBalance;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operateTime;

    /** 发生事件（11：存款，12：扣款） */
    @Excel(name = "发生事件", readConverterExp = "11：存款，12：扣款")
    private String evenId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderId;

    public void setUaId(Long uaId) 
    {
        this.uaId = uaId;
    }

    public Long getUaId() 
    {
        return uaId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBeforeBalance(String beforeBalance) 
    {
        this.beforeBalance = beforeBalance;
    }

    public String getBeforeBalance() 
    {
        return beforeBalance;
    }
    public void setThisAmount(String thisAmount) 
    {
        this.thisAmount = thisAmount;
    }

    public String getThisAmount() 
    {
        return thisAmount;
    }
    public void setAfterBalance(String afterBalance) 
    {
        this.afterBalance = afterBalance;
    }

    public String getAfterBalance() 
    {
        return afterBalance;
    }
    public void setOperateTime(Date operateTime) 
    {
        this.operateTime = operateTime;
    }

    public Date getOperateTime() 
    {
        return operateTime;
    }
    public void setEvenId(String evenId) 
    {
        this.evenId = evenId;
    }

    public String getEvenId() 
    {
        return evenId;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("uaId", getUaId())
            .append("userId", getUserId())
            .append("beforeBalance", getBeforeBalance())
            .append("thisAmount", getThisAmount())
            .append("afterBalance", getAfterBalance())
            .append("operateTime", getOperateTime())
            .append("evenId", getEvenId())
            .append("orderId", getOrderId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
